/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainFrame.java
 *
 * Created on Apr 10, 2011, 2:14:32 AM
 */
package com.kifas.main.ui;

import com.kifas.sales.ui.FormCetakSuratJalan;
import com.kifas.sales.ui.FormDaftarOrderPenjualan;
import com.kifas.sales.ui.FormDaftarPengiriman;
import com.kifas.sales.ui.FormDaftarPenjualanJthTempo;
import com.kifas.sales.ui.FormOrderPenjualan;
import com.kifas.sales.ui.FormPengiriman;
import com.kifas.ui.finance.FormBukuPiutang;
import com.kifas.ui.finance.FormCetakInvoice;
import com.kifas.ui.finance.accounting.FormPostingJurnal;
import com.kifas.ui.master.FormJenisBarang;
import com.kifas.ui.master.FormJenisCustomer;
import com.kifas.ui.master.FormMasterAkun;
import com.kifas.ui.master.FormMasterBarang;
import com.kifas.ui.master.FormMasterCustomer;
import com.kifas.ui.master.FormMasterGudang;
import com.kifas.ui.master.FormMasterSatuan;
import com.kifas.ui.master.FormMasterSupplier;
import com.kifas.ui.purchase.FormOrderPembelian;
import com.kifas.ui.purchase.FormPenerimaanPembelian;
import com.kifas.ui.stok.FormPenerimaanLain;
import com.kifas.ui.stok.FormPopulateStokManual;
import com.kifas.ui.stok.FormShowStok;
import java.awt.BorderLayout;
import java.awt.Image;
import java.util.logging.Level;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.apache.log4j.Logger;

/**
 *
 * @author dhamarsu
 */
public class MainFrame extends javax.swing.JFrame {
    private Logger log = Logger.getLogger(MainFrame.class);
    private Image image;
    /** Creates new form MainFrame */
    public MainFrame() {
        initComponents();
//        System.setProperty(
//                "Quaqua.tabLayoutPolicy", "wrap");
//        try {
//            UIManager.setLookAndFeel(ch.randelshofer.quaqua.QuaquaManager.getLookAndFeel());
//        } catch (UnsupportedLookAndFeelException ex) {
//            log.debug(ex);
//        }
        try {
            UIManager.setLookAndFeel(new com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel());
        } catch (UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
//        try {
//            UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
        setExtendedState(JFrame.MAXIMIZED_BOTH);
        setTitle("Aplikasi Inventory & Accounting");
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        desktopPane = new javax.swing.JDesktopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();
        jMenuItem15 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        jMenuItem16 = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        jMenuItem17 = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        jMenuItem18 = new javax.swing.JMenuItem();
        jMenuItem19 = new javax.swing.JMenuItem();
        jMenuItem20 = new javax.swing.JMenuItem();
        jSeparator5 = new javax.swing.JPopupMenu.Separator();
        jMenuItem24 = new javax.swing.JMenuItem();
        jMenuItem25 = new javax.swing.JMenuItem();
        jMenu9 = new javax.swing.JMenu();
        jMenuItem28 = new javax.swing.JMenuItem();
        jMenuItem29 = new javax.swing.JMenuItem();
        jMenuItem30 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem21 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenu11 = new javax.swing.JMenu();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem13 = new javax.swing.JMenuItem();
        jMenu12 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem14 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenu5 = new javax.swing.JMenu();
        mnuShowStok = new javax.swing.JMenuItem();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenuItem11 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jMenuItem22 = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        jMenuItem23 = new javax.swing.JMenuItem();
        jMenuItem42 = new javax.swing.JMenuItem();
        jSeparator12 = new javax.swing.JPopupMenu.Separator();
        jMenu14 = new javax.swing.JMenu();
        jMenu6 = new javax.swing.JMenu();
        jMenuItem31 = new javax.swing.JMenuItem();
        jMenuItem33 = new javax.swing.JMenuItem();
        jMenuItem26 = new javax.swing.JMenuItem();
        jSeparator6 = new javax.swing.JPopupMenu.Separator();
        jMenuItem32 = new javax.swing.JMenuItem();
        jMenuItem34 = new javax.swing.JMenuItem();
        jMenuItem27 = new javax.swing.JMenuItem();
        jSeparator10 = new javax.swing.JPopupMenu.Separator();
        jMenuItem43 = new javax.swing.JMenuItem();
        jMenuItem45 = new javax.swing.JMenuItem();
        jMenuItem44 = new javax.swing.JMenuItem();
        jSeparator13 = new javax.swing.JPopupMenu.Separator();
        jMenu10 = new javax.swing.JMenu();
        jMenu7 = new javax.swing.JMenu();
        jMenuItem39 = new javax.swing.JMenuItem();
        jSeparator7 = new javax.swing.JPopupMenu.Separator();
        jMenuItem36 = new javax.swing.JMenuItem();
        jMenuItem46 = new javax.swing.JMenuItem();
        jMenuItem35 = new javax.swing.JMenuItem();
        jSeparator9 = new javax.swing.JPopupMenu.Separator();
        jMenuItem37 = new javax.swing.JMenuItem();
        jMenuItem38 = new javax.swing.JMenuItem();
        jMenuItem41 = new javax.swing.JMenuItem();
        jMenuItem40 = new javax.swing.JMenuItem();
        jSeparator11 = new javax.swing.JPopupMenu.Separator();
        jMenu13 = new javax.swing.JMenu();
        jMenu8 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        desktopPane.setName("desktopPane"); // NOI18N

        jMenuBar1.setBackground(new java.awt.Color(204, 249, 66));
        jMenuBar1.setName("jMenuBar1"); // NOI18N
        jMenuBar1.setPreferredSize(new java.awt.Dimension(84, 35));

        jMenu1.setText("File");
        jMenu1.setName("jMenu1"); // NOI18N
        jMenuBar1.add(jMenu1);

        jMenu4.setText("Master Data");
        jMenu4.setName("jMenu4"); // NOI18N
        jMenu4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu4ActionPerformed(evt);
            }
        });

        jMenuItem15.setText("Jenis Customer");
        jMenuItem15.setName("jMenuItem15"); // NOI18N
        jMenuItem15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem15ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem15);

        jMenuItem5.setText("Customer");
        jMenuItem5.setName("jMenuItem5"); // NOI18N
        jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem5ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem5);

        jSeparator1.setName("jSeparator1"); // NOI18N
        jMenu4.add(jSeparator1);

        jMenuItem16.setText("Supplier");
        jMenuItem16.setName("jMenuItem16"); // NOI18N
        jMenuItem16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem16ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem16);

        jSeparator2.setName("jSeparator2"); // NOI18N
        jMenu4.add(jSeparator2);

        jMenuItem17.setText("Gudang");
        jMenuItem17.setName("jMenuItem17"); // NOI18N
        jMenuItem17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem17ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem17);

        jSeparator3.setName("jSeparator3"); // NOI18N
        jMenu4.add(jSeparator3);

        jMenuItem18.setText("Jenis Barang");
        jMenuItem18.setName("jMenuItem18"); // NOI18N
        jMenuItem18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem18ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem18);

        jMenuItem19.setText("Satuan");
        jMenuItem19.setName("jMenuItem19"); // NOI18N
        jMenuItem19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem19ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem19);

        jMenuItem20.setText("Barang");
        jMenuItem20.setName("jMenuItem20"); // NOI18N
        jMenuItem20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem20ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem20);

        jSeparator5.setName("jSeparator5"); // NOI18N
        jMenu4.add(jSeparator5);

        jMenuItem24.setText("Type Akun");
        jMenuItem24.setName("jMenuItem24"); // NOI18N
        jMenu4.add(jMenuItem24);

        jMenuItem25.setText("Akun");
        jMenuItem25.setName("jMenuItem25"); // NOI18N
        jMenuItem25.setName("jMenuItem25"); // NOI18N
        jMenuItem25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem25ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem25);

        jMenuBar1.add(jMenu4);

        jMenu9.setText("Saldo Awal");
        jMenu9.setName("jMenu9"); // NOI18N

        jMenuItem28.setText("Stok Barang");
        jMenuItem28.setName("jMenuItem28"); // NOI18N
        jMenu9.add(jMenuItem28);

        jMenuItem29.setText("Piutang");
        jMenuItem29.setName("jMenuItem29"); // NOI18N
        jMenu9.add(jMenuItem29);

        jMenuItem30.setText("Hutang");
        jMenuItem30.setName("jMenuItem30"); // NOI18N
        jMenu9.add(jMenuItem30);

        jMenuBar1.add(jMenu9);

        jMenu2.setText("Sales");
        jMenu2.setName("jMenu2"); // NOI18N

        jMenuItem1.setText("Order Penjualan");
        jMenuItem1.setName("jMenuItem1"); // NOI18N
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem1);

        jMenuItem21.setText("Cetak Surat Jalan");
        jMenuItem21.setName("jMenuItem21"); // NOI18N
        jMenuItem21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem21ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem21);

        jMenuItem2.setText("Pengiriman");
        jMenuItem2.setName("jMenuItem2"); // NOI18N
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem2);

        jMenuItem7.setText("Cetak Invoice (Piutang)");
        jMenuItem7.setName("jMenuItem7"); // NOI18N
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem7);

        jMenu11.setText("Monitoring Penjualan");
        jMenu11.setName("jMenu11"); // NOI18N

        jMenuItem3.setText("Daftar Penjualan");
        jMenuItem3.setName("jMenuItem3"); // NOI18N
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu11.add(jMenuItem3);

        jMenuItem13.setText("Penjualan Jth Tempo");
        jMenuItem13.setName("jMenuItem13"); // NOI18N
        jMenuItem13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem13ActionPerformed(evt);
            }
        });
        jMenu11.add(jMenuItem13);

        jMenu2.add(jMenu11);

        jMenu12.setText("Monitoring Pengiriman");
        jMenu12.setName("jMenu12"); // NOI18N

        jMenuItem4.setText("Daftar Pengiriman");
        jMenuItem4.setName("jMenuItem4"); // NOI18N
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        jMenu12.add(jMenuItem4);

        jMenuItem14.setText("Pengiriman Jth Tempo");
        jMenuItem14.setName("jMenuItem14"); // NOI18N
        jMenu12.add(jMenuItem14);

        jMenu2.add(jMenu12);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Purchase");
        jMenu3.setName("jMenu3"); // NOI18N

        jMenuItem6.setText("Order Pembelian");
        jMenuItem6.setName("jMenuItem6"); // NOI18N
        jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem6ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem6);

        jMenuItem8.setText("Penerimaan Pembelian");
        jMenuItem8.setName("jMenuItem8"); // NOI18N
        jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem8ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem8);

        jMenuItem9.setText("Pembelian");
        jMenuItem9.setName("jMenuItem9"); // NOI18N
        jMenu3.add(jMenuItem9);

        jMenuBar1.add(jMenu3);

        jMenu5.setText("Stok");
        jMenu5.setName("jMenu5"); // NOI18N
        jMenu5.setName("jMenu5"); // NOI18N

        mnuShowStok.setText("Lihat Stok");
        mnuShowStok.setName("mnuShowStok"); // NOI18N
        mnuShowStok.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuShowStokActionPerformed(evt);
            }
        });
        jMenu5.add(mnuShowStok);

        jMenuItem10.setText("Analisa Stok");
        jMenuItem10.setName("jMenuItem10"); // NOI18N
        jMenu5.add(jMenuItem10);

        jMenuItem11.setText("Penyesuaian Stok");
        jMenuItem11.setName("jMenuItem11"); // NOI18N
        jMenu5.add(jMenuItem11);

        jMenuItem12.setText("Mutasi Stok");
        jMenuItem12.setName("jMenuItem12"); // NOI18N
        jMenu5.add(jMenuItem12);

        jMenuItem22.setText("Penerimaan Lain-Lain");
        jMenuItem22.setName("jMenuItem22"); // NOI18N
        jMenuItem22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem22ActionPerformed(evt);
            }
        });
        jMenu5.add(jMenuItem22);

        jSeparator4.setName("jSeparator4"); // NOI18N
        jMenu5.add(jSeparator4);

        jMenuItem23.setText("Generate Stok (Manual)");
        jMenuItem23.setName("jMenuItem23"); // NOI18N
        jMenuItem23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem23ActionPerformed(evt);
            }
        });
        jMenu5.add(jMenuItem23);

        jMenuItem42.setText("Mutasi Gudang");
        jMenuItem42.setName("jMenuItem42"); // NOI18N
        jMenu5.add(jMenuItem42);

        jSeparator12.setName("jSeparator12"); // NOI18N
        jMenu5.add(jSeparator12);

        jMenu14.setText("Laporan");
        jMenu14.setName("jMenu14"); // NOI18N
        jMenu5.add(jMenu14);

        jMenuBar1.add(jMenu5);

        jMenu6.setText("Finance");
        jMenu6.setName("jMenu6"); // NOI18N

        jMenuItem31.setText("Entry Piutang");
        jMenuItem31.setName("jMenuItem31"); // NOI18N
        jMenu6.add(jMenuItem31);

        jMenuItem33.setText("Pembayaran Piutang");
        jMenuItem33.setName("jMenuItem33"); // NOI18N
        jMenuItem33.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem33ActionPerformed(evt);
            }
        });
        jMenu6.add(jMenuItem33);

        jMenuItem26.setText("Buku Piutang");
        jMenuItem26.setName("jMenuItem26"); // NOI18N
        jMenuItem26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem26ActionPerformed(evt);
            }
        });
        jMenu6.add(jMenuItem26);

        jSeparator6.setName("jSeparator6"); // NOI18N
        jMenu6.add(jSeparator6);

        jMenuItem32.setText("Entry Hutang");
        jMenuItem32.setName("jMenuItem32"); // NOI18N
        jMenu6.add(jMenuItem32);

        jMenuItem34.setText("Pembayaran Hutang");
        jMenuItem34.setName("jMenuItem34"); // NOI18N
        jMenu6.add(jMenuItem34);

        jMenuItem27.setText("Buku Hutang");
        jMenuItem27.setName("jMenuItem27"); // NOI18N
        jMenu6.add(jMenuItem27);

        jSeparator10.setName("jSeparator10"); // NOI18N
        jMenu6.add(jSeparator10);

        jMenuItem43.setText("Kas");
        jMenuItem43.setName("jMenuItem43"); // NOI18N
        jMenu6.add(jMenuItem43);

        jMenuItem45.setText("Penyesuaian Kas");
        jMenuItem45.setName("jMenuItem45"); // NOI18N
        jMenu6.add(jMenuItem45);

        jMenuItem44.setText("Mutasi Kas");
        jMenuItem44.setName("jMenuItem44"); // NOI18N
        jMenu6.add(jMenuItem44);

        jSeparator13.setName("jSeparator13"); // NOI18N
        jMenu6.add(jSeparator13);

        jMenu10.setText("Laporan");
        jMenu10.setName("jMenu10"); // NOI18N
        jMenu6.add(jMenu10);

        jMenuBar1.add(jMenu6);

        jMenu7.setText("Accounting");
        jMenu7.setName("jMenu7"); // NOI18N

        jMenuItem39.setText("Daftar Akun");
        jMenuItem39.setName("jMenuItem39"); // NOI18N
        jMenu7.add(jMenuItem39);

        jSeparator7.setName("jSeparator7"); // NOI18N
        jMenu7.add(jSeparator7);

        jMenuItem36.setText("Jurnal");
        jMenuItem36.setName("jMenuItem36"); // NOI18N
        jMenu7.add(jMenuItem36);

        jMenuItem46.setText("Data Jurnal");
        jMenuItem46.setName("jMenuItem46"); // NOI18N
        jMenu7.add(jMenuItem46);

        jMenuItem35.setText("Posting Jurnal");
        jMenuItem35.setName("jMenuItem35"); // NOI18N
        jMenu7.add(jMenuItem35);

        jSeparator9.setName("jSeparator9"); // NOI18N
        jMenu7.add(jSeparator9);

        jMenuItem37.setText("Buku Besar");
        jMenuItem37.setName("jMenuItem37"); // NOI18N
        jMenu7.add(jMenuItem37);

        jMenuItem38.setText("Neraca Percobaan");
        jMenuItem38.setName("jMenuItem38"); // NOI18N
        jMenu7.add(jMenuItem38);

        jMenuItem41.setText("Neraca");
        jMenuItem41.setName("jMenuItem41"); // NOI18N
        jMenu7.add(jMenuItem41);

        jMenuItem40.setText("Perhitungan Laba Rugi");
        jMenuItem40.setName("jMenuItem40"); // NOI18N
        jMenu7.add(jMenuItem40);

        jSeparator11.setName("jSeparator11"); // NOI18N
        jMenu7.add(jSeparator11);

        jMenu13.setText("Laporan");
        jMenu13.setName("jMenu13"); // NOI18N
        jMenu7.add(jMenu13);

        jMenuBar1.add(jMenu7);

        jMenu8.setText("Utility");
        jMenu8.setName("jMenu8"); // NOI18N
        jMenuBar1.add(jMenu8);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 754, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        FormOrderPenjualan formOrderPenjualan = new FormOrderPenjualan();
        desktopPane.add(formOrderPenjualan, BorderLayout.CENTER);
        formOrderPenjualan.setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        // TODO add your handling code here:
        FormDaftarOrderPenjualan formDaftarOrderPenjualan = new FormDaftarOrderPenjualan();
        desktopPane.add(formDaftarOrderPenjualan);
        formDaftarOrderPenjualan.setVisible(true);
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
        FormPengiriman formPengiriman = new FormPengiriman();
        desktopPane.add(formPengiriman);
        formPengiriman.setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
        // TODO add your handling code here:
        FormDaftarPengiriman formDaftarPengiriman = new FormDaftarPengiriman();
        desktopPane.add(formDaftarPengiriman);
        formDaftarPengiriman.setVisible(true);
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    private void mnuShowStokActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuShowStokActionPerformed
        // TODO add your handling code here:
        FormShowStok formShowStok = new FormShowStok();
        desktopPane.add(formShowStok);
        formShowStok.setVisible(true);
    }//GEN-LAST:event_mnuShowStokActionPerformed

    private void jMenuItem13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem13ActionPerformed
        // TODO add your handling code here:
        FormDaftarPenjualanJthTempo form = new FormDaftarPenjualanJthTempo();
        desktopPane.add(form);
        form.setVisible(true);
    }//GEN-LAST:event_jMenuItem13ActionPerformed

    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed
        // TODO add your handling code here:
        FormOrderPembelian form = new FormOrderPembelian();
        desktopPane.add(form);
        form.setVisible(true);
    }//GEN-LAST:event_jMenuItem6ActionPerformed

    private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed
        // TODO add your handling code here:
        FormPenerimaanPembelian form = new FormPenerimaanPembelian();
        desktopPane.add(form);
        form.setVisible(true);
    }//GEN-LAST:event_jMenuItem8ActionPerformed

    private void jMenuItem15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem15ActionPerformed
        // TODO add your handling code here:
        FormJenisCustomer form = new FormJenisCustomer();
        desktopPane.add(form);
        form.setVisible(true);
    }//GEN-LAST:event_jMenuItem15ActionPerformed

    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
        // TODO add your handling code here:
        FormMasterCustomer form = new FormMasterCustomer();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem5ActionPerformed

    private void jMenuItem16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem16ActionPerformed
        // TODO add your handling code here:
        FormMasterSupplier form = new FormMasterSupplier();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem16ActionPerformed

    private void jMenuItem17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem17ActionPerformed
        // TODO add your handling code here:
        FormMasterGudang form = new FormMasterGudang();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem17ActionPerformed

    private void jMenuItem18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem18ActionPerformed
        // TODO add your handling code here:
        FormJenisBarang form = new FormJenisBarang();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem18ActionPerformed

    private void jMenuItem19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem19ActionPerformed
        // TODO add your handling code here:
        FormMasterSatuan form = new FormMasterSatuan();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem19ActionPerformed

    private void jMenuItem20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem20ActionPerformed
        // TODO add your handling code here:
        FormMasterBarang form = new FormMasterBarang();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem20ActionPerformed

    private void jMenuItem21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem21ActionPerformed
        // TODO add your handling code here:
        FormCetakSuratJalan form = new FormCetakSuratJalan();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem21ActionPerformed

    private void jMenuItem22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem22ActionPerformed
        // TODO add your handling code here:
        FormPenerimaanLain form = new FormPenerimaanLain();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem22ActionPerformed

    private void jMenuItem23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem23ActionPerformed
        // TODO add your handling code here:
        FormPopulateStokManual form = new FormPopulateStokManual();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem23ActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
        // TODO add your handling code here:
        FormCetakInvoice form = new FormCetakInvoice();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jMenuItem26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem26ActionPerformed
        // TODO add your handling code here:
        FormBukuPiutang form = new FormBukuPiutang();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem26ActionPerformed

    private void jMenu4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu4ActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_jMenu4ActionPerformed

    private void jMenuItem33ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem33ActionPerformed
        // TODO add your handling code here:
        FormPostingJurnal form = new FormPostingJurnal();
        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem33ActionPerformed

    private void jMenuItem25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem25ActionPerformed
        // TODO add your handling code here:
//        FormMasterAkun form = new FormMasterAkun();
//        addToDestopPane(form);
    }//GEN-LAST:event_jMenuItem25ActionPerformed

    private void addToDestopPane(JInternalFrame internalFrame){
        desktopPane.add(internalFrame);
        internalFrame.setVisible(true);
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MainFrame().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu10;
    private javax.swing.JMenu jMenu11;
    private javax.swing.JMenu jMenu12;
    private javax.swing.JMenu jMenu13;
    private javax.swing.JMenu jMenu14;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenu jMenu7;
    private javax.swing.JMenu jMenu8;
    private javax.swing.JMenu jMenu9;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem11;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem13;
    private javax.swing.JMenuItem jMenuItem14;
    private javax.swing.JMenuItem jMenuItem15;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem17;
    private javax.swing.JMenuItem jMenuItem18;
    private javax.swing.JMenuItem jMenuItem19;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem20;
    private javax.swing.JMenuItem jMenuItem21;
    private javax.swing.JMenuItem jMenuItem22;
    private javax.swing.JMenuItem jMenuItem23;
    private javax.swing.JMenuItem jMenuItem24;
    private javax.swing.JMenuItem jMenuItem25;
    private javax.swing.JMenuItem jMenuItem26;
    private javax.swing.JMenuItem jMenuItem27;
    private javax.swing.JMenuItem jMenuItem28;
    private javax.swing.JMenuItem jMenuItem29;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem30;
    private javax.swing.JMenuItem jMenuItem31;
    private javax.swing.JMenuItem jMenuItem32;
    private javax.swing.JMenuItem jMenuItem33;
    private javax.swing.JMenuItem jMenuItem34;
    private javax.swing.JMenuItem jMenuItem35;
    private javax.swing.JMenuItem jMenuItem36;
    private javax.swing.JMenuItem jMenuItem37;
    private javax.swing.JMenuItem jMenuItem38;
    private javax.swing.JMenuItem jMenuItem39;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem40;
    private javax.swing.JMenuItem jMenuItem41;
    private javax.swing.JMenuItem jMenuItem42;
    private javax.swing.JMenuItem jMenuItem43;
    private javax.swing.JMenuItem jMenuItem44;
    private javax.swing.JMenuItem jMenuItem45;
    private javax.swing.JMenuItem jMenuItem46;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator10;
    private javax.swing.JPopupMenu.Separator jSeparator11;
    private javax.swing.JPopupMenu.Separator jSeparator12;
    private javax.swing.JPopupMenu.Separator jSeparator13;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JPopupMenu.Separator jSeparator5;
    private javax.swing.JPopupMenu.Separator jSeparator6;
    private javax.swing.JPopupMenu.Separator jSeparator7;
    private javax.swing.JPopupMenu.Separator jSeparator9;
    private javax.swing.JMenuItem mnuShowStok;
    // End of variables declaration//GEN-END:variables
}
